package com.editso.haier.dao;

import com.editso.haier.entity.User;

import java.util.Optional;


public interface UserDao extends Dao<User, String>{

    boolean existsByName(String name);

    Optional<User> findByName(String name);

    User findUserByNameAndPassword(String name, String password);

}
